package com.zhiyou.hospital.ssh.filter;

import javax.servlet.ServletContextEvent;
import javax.servlet.ServletContextListener;

/**
 * Created by zhouyanchao on 2017/10/18.
 * Descr:
 */
public class MyContextListener implements ServletContextListener {
	@Override
	public void contextInitialized(ServletContextEvent sce) {
		System.out.println("context 启动了");
		System.out.println("接收context param参数");
		System.out.println(sce.getServletContext().getInitParameter("contextConfigLocation"));

	}

	@Override
	public void contextDestroyed(ServletContextEvent sce) {
		System.out.println("context 关闭了");
	}
}
